package excercise;

import java.util.Scanner;

public class EX01_022 {
	
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int thisYear = 0;
		String result = null;
		
		System.out.print("년도를 입력하시오 : ");
		thisYear = sc.nextInt();
		
		if((thisYear % 4 == 0) && (thisYear % 100 != 0) || (thisYear % 400 == 0)) {
			result = "윤년입니다.";
		} else { result = "윤년이 아닙니다."; }
		
		System.out.println("입력하신 " + thisYear + " 년은 " + result);
		
	}

}
